package h_innerClass;

public class MainClass {
	String name="park";
	String section="전산실";
	String position="실장";
	
	class Samsung{
		String company = "samsung";
		public Samsung(){
			prn(company);	
		}
	}
	
	class Lg{
		String company = "LG";
		public Lg(){
			prn(company);	
		}
	}

	class Hundai{
		String company = "Hundai";
		public Hundai(){
			prn(company);	
		}
	}

	
	public void prn(String s){
		System.out.println("company : " + s);
		System.out.println("name : " + name);
		System.out.println("section : " + section);
		System.out.println("position : " + position);
		System.out.println("--------------------");
	}
	public static void main(String[] args) {
		
		MainClass.Samsung ms = new MainClass(). new Samsung();
		MainClass.Lg lg = new MainClass(). new Lg();
		MainClass.Hundai hd = new MainClass(). new Hundai();



	}

}
